Repository navigation
ASoC: codec: max98373-sdw: fix a amixer error when codec is suspended - #2226
Merged
plbossart merged 1 commit intoJul 2, 2020
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If codec is suspended, a error of Device or resource busy occurs when
executing amixer. Amixer accesses some codec registers are volatile and
the regmap is set to cache_only when codec is suspended, so regmap can't
get these data from regmap cache and return -EBUSY.
Actually these registers can be set by user and remain unchanged, so we
can get its value from regmap cache. This patch remove volatile attribute
of these registers to let regmap cache work.
fixes #2221